package com.ning.cloud.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ning.cloud.user.dto.UserLoginDTO;
import com.ning.cloud.user.dto.UserRegisterDTO;
import com.ning.cloud.user.entity.AdminUserEntity;
import com.ning.cloud.user.request.UserLoginRequest;
import com.ning.cloud.user.request.UserRegisterRequest;

/**
 * <p>
 * 后台用户 服务类
 * </p>
 *
 * @author kxn
 * @since 2025-08-07
 */
public interface AdminUserService extends IService<AdminUserEntity> {

    AdminUserEntity getUserByUsername(String username);

    /**
     * 注册用户
     * @param userRegisterRequest
     * @return
     */
    UserRegisterDTO register(UserRegisterRequest userRegisterRequest);

    UserLoginDTO login(UserLoginRequest userLoginRequest);
}
